package com.wingscode.modules.sys.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wingscode.modules.sys.entity.DictionaryValueEntity;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 字典value
 *
 * @author yan
 */
@Mapper
public interface DictionaryValueDao extends BaseMapper<DictionaryValueEntity> {

	/**
	 * 查询所有字典value
	 */
	List<DictionaryValueEntity> getList(@Param("type") String type, @Param("pid") Integer pid);

	IPage<DictionaryValueEntity> queryByType(IPage<DictionaryValueEntity> page, @Param("type") String type, @Param("name") String name);
}
